package com.wf.model.response;

import com.wf.model.enums.ResultCode;

public class ResponseObject<T> {
	
	private ResultCode status;
	private T data;
	private String msg;
	private String details;
	
	public ResponseObject() {
		status = ResultCode.SUCCESS;
		msg = "";
	}
	
	public ResponseObject(T data) {
		this.data = data;
		status = ResultCode.SUCCESS;
		msg = "";
	}

	public ResponseObject(ResultCode status, String msg) {
		this.status = status;
		this.msg = msg;
	}

	public int getStatus() {
		return status.getCode();
	}
	
	public void setStatus(ResultCode status) {
		this.status = status;
	}
	
	public T getData() {
		return data;
	}
	
	public void setData(T data) {
		this.data = data;
	}
	
	public String getMsg() {
		return msg;
	}
	
	public void setMsg(String msg) {
		this.msg = msg;
	}

	public String getDetails() {
		return details;
	}

	public void setDetails(String details) {
		this.details = details;
	}
	
}